package com.erclab.internal.xpresso.unittests;

import com.erclab.internal.xpresso.Application;
import com.erclab.internal.xpresso.conf.Settings;
import com.erclab.internal.xpresso.exceptions.ApplicationException;
import com.erclab.internal.xpresso.exceptions.DirectoryException;
import com.erclab.internal.xpresso.security.User;

import junit.framework.TestCase;

public class XpressoBaseTest extends TestCase {

	protected Application grad = null;
	protected User user = null;
	
	protected void setUp() throws Exception {
		super.setUp();
		user = new User();
		user.setNetId("Guest");
		try {
			grad = new Application();
		} catch(ApplicationException e){
			e.printStackTrace();
			fail("Create Application failed: " + e.toString());
		}
		try {
			Settings.getUserDirectory().loadUserBean(user);
		} catch (DirectoryException e) {
			fail();
			e.printStackTrace();
		}
	}
	
	
}
